
<table class="pure-table">
    <tr><td>城市号:</td><td><span class="badge bg-green">{$info.cate.title?:'未选择发布主题'}</span></td></tr>  
    <tr><td class="w100">数据统计:</td><td>阅读数：{$info.views}，点赞数：{$info.like}，评论数：{$info.reply_num}</td></tr> 
    <tr><td>信息内容:</td><td>{$info.themes}</td></tr> 
    {if $info.images}<tr><td>图片:</td><td>{foreach $info.images as $pic}<div class="img-review"><img src="{$pic}"></div>{/foreach} </td></tr>{/if}
    <tr><td>是否置顶:</td><td>{if $info.is_top}<span class="badge bg-red">置顶</span>{else}<span class="badge">普通</span>{/if}</td></tr> 
    {if $info.paid_at}
        <tr><td>支付时间:</td><td>{$info.paid_time}</td></tr> 
        <tr><td>付款单号:</td><td>{$info.order_no}</td></tr> 
        <tr><td>支付金额:</td><td>{$info.top_money/100|money}</td></tr> 
        <tr><td>置顶天数:</td><td>{$info.topday}天</td></tr> 
    {/if}
    <tr><td>联系电话:</td><td>{$info.telphone}</td></tr> 
    {foreach $fields as $vo}
    <tr><td>{$vo.title}:</td><td>{$vo.value}</td></tr> 
    {/foreach}
</table>
<div class="titlebar"><i class="iconfont icon-wodefankui"></i>评论内容</div>
<table class="table table-border">
    <thead>
        <tr>
            <th class="w80 fn-tac">操作</th>
            <th>内容</th>
            <th class="w140">创建时间</th>
            <th class="w70 fn-tac">状态</th>
        </tr>
    </thead>
    <tbody>
        {foreach $reply as $vo}
        <tr>
            <td class="fn-tac"><a class="button button-mini isDel" url="{:url('info.index/delReply',['id' => $vo.id])}" href="javascript:;"><i class="iconfont icon-lajixiang"></i>删除</a></td>
            <td>{$vo->reply}</td>
            <td>{$vo->create_time|date='Y-m-d H:i'}</td>
            <td class="fn-tac">
                <a class="isLock" url="{:url('info.index/islockReply',array('id'=>$vo.id))}" href="javascript:;" title="锁定/解锁">{if $vo->state}<span class="badge bg-red">锁定</span>{else}<span class="badge">正常</span>{/if}</a>
            </td>
        </tr>
        {/foreach}
    </tbody>
</table>
<div class="page fn-clear">{$reply|raw}</div>
<script type="text/javascript">
Do('base', 'layer', function () {
    $('.isDel').isDel();
    $('.isLock').click(function () {
        var url = $(this).attr("url");
        parent.layer.confirm('确认要锁定?',{ icon: 3,title: '友情提示' }, function (index) {
            $.getJSON(url, function (data) {window.location.reload();});
            parent.layer.close(index);
        });
    })
})
</script>